import { Request } from './request'
const request = new Request('https://cloudcode.anxinhr.com')

export function ocrCard (data: {
    base64: string
    type: string
}): Promise<{
    result: {
        address: string
        birthday: string
        code: string
        name: string
        nation: string
        sex: string
    }
    msg: string
}> {
    return request.post('/api/ocr/', data)
}
